extends "../calxgx_2_1/calxgx_2_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "奥奇"  
	lv = 4
	addSkillTxt("[color=#FFFF00][万象回光][/color]:[color=#FFCC22]人品爆发万象回光，对目标造成200%光系物理伤害，回复自身40%最大体力值，15%概率回复所有体力值[CD:17][/color]")
	addCdSkill("wxhg",17)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "wxhg":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("万象回光", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.atk*2,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		plusHp(att.maxHp*0.4)
		if sys.rndPer(15):
			plusHp(att.maxHp*1)